<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<HEAD>
		<TITLE>Log in successful</TITLE>
		<jsp:useBean id="beans" class="beans.LoginBean" scope="page" />
	</HEAD>
	<BODY>
		<FORM action="_2PageServlet" METHOD="GET" name="LoggedIn">
			<input type="hidden" name="page" value="2"/>
			<H1>Logged in</H1>
			<% String username = (String) request.getSession().getAttribute("userName"); %>
			<% String password = (String) request.getSession().getAttribute("passWord"); %>
			Login = <% String login = beans.getUserName(username, password); %> <%=login %>
		</FORM> 
	</BODY>
</html>